package 多线程;

public class TestThread2 implements Runnable{
    @Override
    public void run() {
        System.out.println("显诚意");
        int a = 0;
        do {
            a = Entity.num;
            System.out.println("Entity.num = " + Entity.num);
            try {
                Thread.sleep(50);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }while (true);

    }
}
